package org.goldenport.g3

/**
 * @since   May. 30, 2010
 * @version Jun. 19, 2010
 * @author  ASAMI, Tomoharu
 **/
abstract class G3Authentication() {
}

class BasicAuthentication(val user: String, val password: String) extends G3Authentication {
}

class OAuthAuthentication(val user: String,
  val consumerKey: String, val consumerSecret: String,
  val accessToken: Option[String], val accessTokenSecret: Option[String]) extends G3Authentication {
}

object G3Authentication {
  def apply(user: String, password: String) = {
    new BasicAuthentication(user, password)
  }
}
